package com.zouxs.interfaces;

import org.springframework.lang.Nullable;

public interface FactoryBean<T> {
    //获取对象
    @Nullable
    T getObject() throws Exception;


    //获取对象类型
    @Nullable
    Class<?> getObjectType();


    //是否单例
    default boolean isSingleton() {
        return true;
    }
}
